package cn.ibizlab.odoo.core.odoo_maintenance.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_maintenance.domain.Maintenance_equipment;
import cn.ibizlab.odoo.core.odoo_maintenance.filter.Maintenance_equipmentSearchContext;

/**
 * 实体[Maintenance_equipment] 服务对象接口
 */

public interface IMaintenance_equipmentService{
     boolean remove(Integer id) ;
     Maintenance_equipment get(Integer id) ;
     Maintenance_equipment get(Maintenance_equipment maintenance_equipment) ;
     void createBatch(List<Maintenance_equipment> maintenance_equipments, int batchSize) ;
     void updateBatch(List<Maintenance_equipment> maintenance_equipments, int batchSize) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     boolean create(Maintenance_equipment maintenance_equipment) ;
     boolean update(Maintenance_equipment maintenance_equipment) ;

    /**
     * 查询集合 默认查询
     */
    Page<Maintenance_equipment> searchDefault(Maintenance_equipmentSearchContext context) ;

    /**
     * 根据HR 部门查询
     */
     Page<Maintenance_equipment> selectByOdoo_department(Integer id) ;

    /**
     * 根据员工查询
     */
     Page<Maintenance_equipment> selectByOdoo_employee(Integer id) ;

    /**
     * 根据维护设备类别查询
     */
     Page<Maintenance_equipment> selectByOdoo_category(Integer id) ;

    /**
     * 根据保养团队查询
     */
     Page<Maintenance_equipment> selectByOdoo_maintenance_team(Integer id) ;

    /**
     * 根据公司查询
     */
     Page<Maintenance_equipment> selectByOdoo_company(Integer id) ;

    /**
     * 根据联系人查询
     */
     Page<Maintenance_equipment> selectByOdoo_partner(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Maintenance_equipment> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Maintenance_equipment> selectByOdoo_owner_user(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Maintenance_equipment> selectByOdoo_technician_user(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Maintenance_equipment> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Maintenance_equipment convert2Domain(cn.ibizlab.odoo.core.client.model.Imaintenance_equipment model ,Maintenance_equipment domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Imaintenance_equipment convert2Model(Maintenance_equipment domain , cn.ibizlab.odoo.core.client.model.Imaintenance_equipment model);

}
